import axios from 'axios';

const origin = window.location.origin;

export async function getUUID() {
    console.log('get uuid');
    const res = await axios.get(`${origin}/uuid`);
    console.log('uuid: ', res);
    if (!res?.data?.uuid) {
        return;
    }
    const uuid = res.data.uuid;
    return uuid;
}